cmake_minimum_required(VERSION 3.3.2)
project(task)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_FLAGS -pthread)

set(base_head_member
        base/copy/noncopyable.h
        base/copy/copyable.h
        base/Atomic.h
        base/Type.h
        base/Thread.h
        base/Mutex.h
        base/Timestamp.h
        base/Channel.h
        base/Poller.h
        base/TimerQueue.h
        base/EventLoop.h
        base/TimerId.h
        base/Timer.h
       )

set(base_member
        base/Thread.cpp
        base/Timestamp.cpp
        base/EventLoop.cpp
        base/Channel.cpp
        base/TimerQueue.cpp
        base/Poller.cpp
        base/Timer.cpp
        )

add_executable(task ${base_head_member} ${base_member} main.cpp)